#ifndef LESSONCREATION_H
#define LESSONCREATION_H

#include <QtGui/QWidget>
#include "includes/phrasecollection.h"
#include "includes/lesson.h"

namespace Ui {
    class LessonCreation;
}

class LessonCreation : public QWidget {
    Q_OBJECT
public:
    LessonCreation(QWidget *parent = 0);
    ~LessonCreation();

public slots:
    void addFiles(QString fileOrPath);
    void shiftRight();
    void shiftAllRight();
    void shiftLeft();
    void shiftAllLeft();
    void saveLesson();
    void loadLesson(Lesson toLoad);
    void createPhrase();
    void editPhrase();
    void deletePhrase();
    void clear();

    void outsideAction(QAction* action);

signals:
    void changedLesson(Lesson ls);

protected:
    void changeEvent(QEvent *e);

private:
    Ui::LessonCreation *l_ui;
    PhraseCollection added;
    Lesson temp;

private slots:
    void selectIcon();
};

#endif // LESSONCREATION_H
